const { VITE_HIDE_HOME } = import.meta.env;
const Layout = () => import("@/layout/index.vue");

export default {
  path: "/merchant",
  component: Layout,
  redirect: "/merchant/management",
  meta: {
    icon: "ep:lollipop",
    title: "商户管理",
    rank: 9
  },
  children: [
    {
      path: "/merchant/management",
      name: "management",
      component: () => import("@/views/merchant/management.vue"),
      meta: {
        title: "商户管理"
      }
    },
    {
      path: "/merchant/releaseRecords",
      name: "releaseRecords",
      component: () => import("@/views/merchant/releaseRecords.vue"),
      meta: {
        title: "发放记录"
      }
    },
    {
      path: "/merchant/releaseDetail",
      name: "releaseDetail",
      component: () => import("@/views/merchant/releaseDetail.vue"),
      meta: {
        title: "发放明细"
      }
    },
    {
      path: "/merchant/invoiceManagement",
      name: "invoiceManagement",
      component: () => import("@/views/merchant/invoiceManagement.vue"),
      meta: {
        title: "开票管理"
      }
    },
    {
      path: "/merchant/account",
      name: "account",
      component: () => import("@/views/merchant/account.vue"),
      meta: {
        title: "商户帐户"
      }
    },
    {
      path: "/merchant/water",
      name: "water",
      component: () => import("@/views/merchant/water.vue"),
      meta: {
        title: "流水明细"
      }
    },
    {
      path: "/merchant/management/detail",
      name: "managementDetail",
      component: () => import("@/views/merchant/detail.vue"),
      meta: {
        showLink: false,
        title: "商户详情"
      }
    }
  ]
} satisfies RouteConfigsTable;
